package overloading;

public class OverloadingReturnType {

	void method(int a, int b) {
		System.out.println("public void method(int a, int b)");
	}
	
	void method(int a, int b, int c) {
		System.out.println("void method(int a, int b, int c)");
	}
	
	void method(int a, int b, int... c) {
		System.out.println("void method(int a, int b, int... c)");
	}
	
	
	void method(int... is) {
		System.out.println("void method(int... is)");
	}
	
	public static void main(String[] args) {
		OverloadingReturnType type = new OverloadingReturnType();
		type.method(1,2);
		type.method(1,2,3);
		type.method(1,2,new int[]{1,2});
//		type.method(1,2,3,4,5,6,7,78,9);
		type.method(new int[]{1,2,3,4,5,6,7});
		type.method(new int[]{1,2});
	}
	
}
